package com.tx.entity;

import org.springframework.format.annotation.DateTimeFormat;
import sun.rmi.server.UnicastServerRef;

import java.util.Date;
/**
 * @Author: tcx
 * @description: 博客评论回复实体类
 * @Date: 2020/04/30
 **/
public class Reply {
    private Integer rId;//评论回复表id
    private Integer ruId;//回复评论用户
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rCreateTime;//回复评论时间
    private String  rContent;//回复内容
    private Integer rOtherId;//被回复用户
    private Integer rCId;//哪个评论下的回复
    private Integer rBId;//哪个博客下的回复
    private Integer rState;//回复状态：0-已读，1-未读

    private String ruName;//回复评论用户名
    private String rOtherName;//被回复用户名
    private User user;
    private Blog blog;


    public Integer getrId() {
        return rId;
    }

    public void setrId(Integer rId) {
        this.rId = rId;
    }

    public Integer getRuId() {
        return ruId;
    }

    public void setRuId(Integer ruId) {
        this.ruId = ruId;
    }

    public Date getrCreateTime() {
        return rCreateTime;
    }

    public void setrCreateTime(Date rCreateTime) {
        this.rCreateTime = rCreateTime;
    }

    public String getrContent() {
        return rContent;
    }

    public void setrContent(String rContent) {
        this.rContent = rContent;
    }

    public Integer getrOtherId() {
        return rOtherId;
    }

    public void setrOtherId(Integer rOtherId) {
        this.rOtherId = rOtherId;
    }

    public Integer getrCId() {
        return rCId;
    }

    public void setrCId(Integer rCId) {
        this.rCId = rCId;
    }

    public Integer getrBId() {
        return rBId;
    }

    public void setrBId(Integer rBId) {
        this.rBId = rBId;
    }

    public Integer getrState() {
        return rState;
    }

    public void setrState(Integer rState) {
        this.rState = rState;
    }

    public String getRuName() {
        return ruName;
    }

    public void setRuName(String ruName) {
        this.ruName = ruName;
    }

    public String getrOtherName() {
        return rOtherName;
    }

    public void setrOtherName(String rOtherName) {
        this.rOtherName = rOtherName;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Blog getBlog() {
        return blog;
    }

    public void setBlog(Blog blog) {
        this.blog = blog;
    }

    @Override
    public String toString() {
        return "Reply{" +
                "rId=" + rId +
                ", ruId=" + ruId +
                ", rCreateTime=" + rCreateTime +
                ", rContent='" + rContent + '\'' +
                ", rOtherId=" + rOtherId +
                ", rCId=" + rCId +
                ", rBId=" + rBId +
                ", rState=" + rState +
                ", ruName='" + ruName + '\'' +
                ", rOtherName='" + rOtherName + '\'' +
                ", user=" + user +
                ", blog=" + blog +
                '}';
    }
}
